package cc.linker.steplink.crm.merchanth5.controller;

import cc.linker.steplink.crm.merchanth5.service.MqTimeService;
import cc.linker.steplink.crm.merchanth5.service.SurvivalPushService;
import cc.linker.steplink.crm.merchanth5.service.acs.ProtectRecordService;
import cc.linker.steplink.crm.merchanth5.service.acs.PurchaseProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class MqTimeController {

    @Autowired
    private MqTimeService mqTimeService;

    @Autowired
    private SurvivalPushService survivalPushService;

    @Autowired
    private PurchaseProcessService purchaseProcessService;

    @Autowired
    private ProtectRecordService protectRecordService;


    @GetMapping("/test")
    @ResponseBody
    public String test(String orderSn,String customerId,String logId,String action,String actionTime,String lastInteractionTime,String orgId,String msg,Long recId) {
        //survivalPushService.setPushSurvival(customerId,logId,action,actionTime,lastInteractionTime,orgId,Long recId);
        //survivalPushService.process(msg);
//        purchaseProcessService.getSplitItems(orderSn,orgId, payMode);
//        protectRecordService.addRefund(null,recId,null,null, null);
        return "ok";
    }
}
